package com.cf.domain.vo;

import com.cf.enums.Area;
import com.cf.enums.RaceType;
import com.cf.enums.UserRole;
import lombok.Data;

@Data
public class UserVO {

    private long id;

    private String name;

    private String phone;

    private String email;

    private int area;

    private Integer type;

    private int userRole;

    public String getTypeName(){
        return RaceType.valueOf(this.type).getName();
    }

    public String getAreaName(){
        return Area.of(this.area).getName();
    }
}
